/**
 * @author luzhenfang
 * @date 2020 04 27
 * @description TS 枚举类型
 */


enum Sex{
    man=1,
    woman=2,
    unknow=3,
}
enum Choice{
    option1, // 0
    option2, // 1
    option3 // 2
}

console.log(Sex.man);
console.log(Sex.woman);
console.log(Sex.unknow);

let sex:number =Sex.unknow;

if(sex==Sex.man){
    console.log("相等");
}else{
    console.log("不相等");
}

